﻿<Application x:Class="OracleTools.OracleHomeSelector.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:res="clr-namespace:OracleTools.OracleHomeSelector.Resources"

    StartupUri="MainForm.xaml">
    <Application.Resources>
        
        <!-- Set button style: Current home is selected -->
        <Style x:Key="{x:Static res:ResID.STYLE_SET_BUTTON_CURRENT}" TargetType="{x:Type Button}">
            <Setter Property="IsEnabled" Value="False" />
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate DataType="Button">
                        <ContentPresenter Content="{x:Static res:ResText.SET_BUTTON_CURRENT}" />
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Set button style: Not current home is selected -->
        <Style x:Key="{x:Static res:ResID.STYLE_SET_BUTTON_NOT_CURRENT}" TargetType="{x:Type Button}">
            <Setter Property="IsEnabled" Value="True" />
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate DataType="Button">
                        <ContentPresenter Content="{x:Static res:ResText.SET_BUTTON_NOT_CURRENT}"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <!-- Set button style: Changing home now -->
        <Style x:Key="{x:Static res:ResID.STYLE_SET_BUTTON_WORKING}" TargetType="{x:Type Button}">
            <Setter Property="IsEnabled" Value="False" />
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate DataType="Button">
                        <ContentPresenter Content="{x:Static res:ResText.SET_BUTTON_WORKING}"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>

    </Application.Resources>
</Application>
